<?


if(isset($_GET['forum']) and $_GET['forum']=="" and !isset($_GET['th']) and !isset($_GET['p_id'])){

	include("./include/forum_list.php");

}elseif(isset($_GET['forum']) and $_GET['forum']!=="" and isnum($_GET['forum']) and !isset($_GET['p_id']) and !isset($_GET['th'])){

	$content.=parse_string($T_FORUM_MAIN_S, array(), array());
	include("./include/forum_threads.php");
	$content.=parse_string($T_FORUM_MAIN_E, array(), array());

}elseif(isset($_GET['forum']) and ($_GET['forum']=="" || isnum($_GET['forum'])) and ((isset($_GET['th']) && isnum($_GET['th'])) || (isset($_GET['p_id']) && isnum($_GET['p_id'])))){
	
	$content.=parse_string($T_FORUM_MAIN_S, array(), array());
	include("./include/forum_posts.php");
	$content.=parse_string($T_FORUM_MAIN_E, array(), array());

}


?>

